package com.lgy.springboot_example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
@MapperScan("com.lgy.springboot_example.mapper") //注意此注解为tk.mybatis包下
public class SpringbootExampleApplication { //extends SpringBootServletInitializer

    public static void main(String[] args) {
        SpringApplication.run(SpringbootExampleApplication.class, args);
    }

    /*@Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(SpringbootExampleApplication.class);
    }*/
}
